package ch.janotta.slawo.da.modifier;

import ch.janotta.slawo.da.Ability;
import ch.janotta.slawo.da.Entity;
import ch.janotta.slawo.da.tables.AttributeValuesTable;

public class AbilityRandomValueGenerationModifier implements Modifier {
  private Ability ability;

  public AbilityRandomValueGenerationModifier(Ability ability) {
    this.ability = ability;
  }

  @Override
  public void apply(Entity entity) {
    entity.setAbilityValue(ability, AttributeValuesTable.getRandomAttributeValue());
  }
}
